<?php
	include_once("./inc_classes.php");
	$table_name = 'ggoggo_board';
	$db = new Nmysql();
	$article = $db->get(
		$q = sprintf("SELECT * FROM `%s` WHERE uid=%s",
			$table_name, $_GET['uid']
		)
	);
?><!doctype html>
<html lang="ko">
<head>
<title>ggoggoboard</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<!--[if IE]>
<meta http-equiv="X-UA-Compatible" content="IE=edge;chrome=1" />
<![endif]-->
</head>
<body>
	<table border="1">
		<colgroup>
			<col width="10%" />
			<col width="90%" />
		</colgroup>
		<thead>
			<tr>
			</tr>
		</thead>

		<tbody>
			<tr>
				<th>uid</th>
				<td><?php echo $article['res']['uid']?></td>
			</tr>
			<tr>
				<th>subject</th>
				<td><?php echo $article['res']['subject']?></td>
			</tr>
			<tr>
				<th>name</th>
				<td><?php echo $article['res']['name']?></td>
			</tr>
			<tr>
				<th>date</th>
				<td><?php echo $article['res']['date']?></td>
			</tr>
			<tr>
				<th>contents</th>
				<td><?php echo $article['res']['contents']?></td>
			</tr>
		</tbody>
	</table>
	<div>
		<a href="list.php?p1=<?php echo isset($_GET['p1'])?$_GET['p1']:0?>">목록</a>
		<a href="update.php?uid=<?php echo isset($_GET['uid'])?$_GET['uid']:0?>&p1=<?php echo isset($_GET['p1'])?$_GET['p1']:0?>">수정</a>
	</div>
</body>
</html>